package com.neusoft.training.podcast.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.neusoft.training.podcast.service.FavouriteService;

@Controller
public class FavouriteController {
	
	@Autowired
	private FavouriteService favouriteService;
	
	// 根据视频名添加到收藏夹
	@RequestMapping("/addFavourite")
	public @ResponseBody String addFavourite(Integer userID, String favouriteVideoName) {
		String result = favouriteService.addFavourite(userID, favouriteVideoName);
		System.out.println(result);
		return result;
		
	}


}
